﻿namespace Z.IconLibraryGenerator.WinForm
{
    public partial class IconLibraryGeneratorManager
    {
        /// <summary>Executes the given project.</summary>
        /// <param name="project">The project.</param>
        public static void Execute(ProjectConfiguration project)
        {
            // Setup
            EnsureDirectoryExists(project);
            CleanDirectory(project);

            // Support File
            GenerateSupportFile(project);

            // Project File
            GenerateProjectFile(project);
            GenerateProjectIconFile(project);

            CopyIcon(project);
        }
    }
}